package gui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;

import javax.swing.JFrame;

public class CustomJFrame extends JFrame implements FocusListener{
	/**
	 * Class: CustomJFrame
	 * Description: customed transparent, no border JFrame
	 * @category GUI
	 * @author Mr3chi
	 * @since 04/04/2013
	 *
	 */
	private static final long serialVersionUID = -4519548277905276006L;
	public CustomJFrame() {
		super();
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//setSize(width, height)
		setUndecorated(true);
		setBackground(new Color(0, 0, 0, 0));
		setLayout(new BorderLayout());
		setVisible(true);
		addFocusListener(this);
	}
	
	//focus checking
	@Override
	public void focusGained(FocusEvent arg0) {
		
	}
	
	@Override
	public void focusLost(FocusEvent arg0) {
		
	}
}
